﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WebSniffer
{
    public partial class Form2 : Form
    {
        public int gamesToPlay;
        public Form2()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (int.TryParse(txtGames.Text, out gamesToPlay) && (gamesToPlay < 1001))
            {
                Close();
            }
            else
            {
                    MessageBox.Show("Invalid number entered! Or too large of a number entered, Please try again", "Invalid Number",MessageBoxButtons.OK,MessageBoxIcon.Error);
            }
        }
    }
}
